package com.webapp.domain.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 通用字典类
 * @author zern
 *
 */
@Entity
@Table(name = "dict")
public class Dict extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2274067276206440416L;
	
	private Long id;
	
	private String code;		// 代码
	
	private String type;		// 类别
	
	private String describes;	// 描述
	
	private String extend;		// 补充内容

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "code", length = 20)
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "type", length = 20)
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column (name = "describes", length = 20)
	public String getDescribes() {
		return describes;
	}

	public void setDescribes(String describes) {
		this.describes = describes;
	}

	@Column(name="extend", length = 800)
	public String getExtend() {
		return extend;
	}

	public void setExtend(String extend) {
		this.extend = extend;
	}

}
